<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/tld/fn.tld" prefix="fn" %>
<%@ taglib uri="/WEB-INF/tld/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/tld/core.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/os.tld" prefix="os" %>
<%@ taglib uri="/WEB-INF/tld/customTaglib.tld" prefix="ct" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBliC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>我的订单-升舱订单</title>
<base href="<%=basePath %>"/>
<link href="orderManager/member/css/login.css" rel="stylesheet" type="text/css" />
<LINK href="orderManager/member/css/header-min.css" rel=stylesheet>
<script type="text/javascript" src="orderManager/member/css/sdmenu.js">	</script>
<script type="text/javascript" src="/script/My97DatePicker/WdatePicker.js" defer="defer"></script>
</head>

<body>

<jsp:include page="/pub_head.jsp"></jsp:include>
	<!-- 中间 -->
	<div id="page-container">
 
<form action="/flight/rise.do?op=orders" method="post" style="margin: 0px;">
	  <div id="content" style="border: solid 1px #0183BD;"><div class="p16" style="display: none"><DIV class="tb-1">
      </DIV></div>
	  <div id="listbb">
	  <div align="center">
        <table class="tablet" cellspacing="1" cellpadding="3" border="0">
          <tr style="text-align: center;" class="tdt">
            <td class="ddbh" height="30">升舱订单编号</td>
            <td class="ddbh">乘客姓名</td>
            <td class="ddbh">升舱时间</td>
            <td class="ddbh">升舱航班号</td>
			<td class="ddbh">升舱舱位</td>
			<td class="ddbh">差额</td>
            <td class="ddbh">订单状态</td>
            <td class="ddbh">操作</td>
          </tr>
          <logic:iterate id="order" name="rises" indexId="index">
          	<tr>
          	<td class="ddbh">${order.cabinNo}</td>
            <td class="ddbh">${order.passengers}</td>
            <td class="ddbh"><bean:write name="order" property="flightDate" format="yyyy-MM-dd HH:mm"/></td>
            <td class="ddbh">${order.flightNo }</td>
			<td class="ddbh">${order.cabin}</td>
			<td class="ddbh">&yen;<bean:write name="order" property="balance" format="#"/> </td>
            <td class="ddbh"><c:if test="${fn:trim(order.state)=='2'}">
                  <font style="color: RED; font-weight: bold;">同意升舱等待支付</font>
                  </c:if>
                  <c:if test="${fn:trim(order.state)=='7' || fn:trim(order.state)=='4'}">
                  <font style="color: GREEN; font-weight: bold;">升舱成功</font>
                  </c:if></td>
            <td class="ddbh">
            <c:if test="${fn:trim(order.state)=='2'}">
                 <button onclick="to_rise_pay('${order.cabinNo}')" style="cursor: pointer;">立即支付</button>
                 <script type="text/javascript">
				<!--
					function to_rise_pay(cno){
						window.location.href='/flight/rise.do?op=getInfos&cabinNo='+cno;
					}	
				//-->
				</script>
             </c:if>
             	<c:if test="${fn:trim(order.state)=='7'}">
                  	<font style="color: GREEN; font-weight: bold;">升舱成功</font>
                  	</c:if>
             </td>
          </tr>
          </logic:iterate>
	    </table>
      </div>
	</div>
	<div id="xm">
	  <div id="hbfk"></div>
  	   <div class="sabrosus">
  	   	<ct:Pagination pageSize="${page.pageSize}" pageNo="${page.pageIndex}" totalRows="${page.recordCount}"/>
  	   </div> 
	  </div>
	</div>
</form>
	
	
<iframe id="frmLeft" name="frmLeft" src="/orderManager/left_buy.jsp" width="154" height="650" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" allowtransparency="yes"></iframe>
 
	
</div>
	<!-- 脚部 http://www.zemoitu.com/footer.jsp<iframe id="frmFoot" name="frmFoot" src="/footer.jsp" width="950" height="280" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" allowtransparency="yes"></iframe>--> 
 
<div id="page-container">
<%@include file="/footer.jsp" %>
</div>




</body>
</html>
